package com.wanghongli.week2fitment.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wanghongli.week2fitment.entity.House;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "WEEK2-HOUSE")
public interface HouseService {

    @RequestMapping("house/getbyid")
    House getbyid(@RequestParam("id") int id);

    @RequestMapping("house/getbyhnum")
    Integer getbyhnum(@RequestParam("hnum")String hnum);
}
